Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add modifiers to render tree #2548

Merged
merged 4 commits into from
Mar 18, 2024
Merged

Conversation

patricklx
Copy link
Collaborator

@patricklx patricklx commented Feb 2, 2024

Description

this adds modifiers and their html element to the render tree.

this also improves the UX for positional args, especially functions

this builds on #2549

Screenshots

@patricklx patricklx force-pushed the add-modifiers branch 3 times, most recently from 2fdb1b3 to 100e6c5 Compare February 6, 2024 13:57
@patricklx
Copy link
Collaborator Author

image

@patricklx patricklx force-pushed the add-modifiers branch 4 times, most recently from f3a27ba to 4fad590 Compare February 6, 2024 14:12
@patricklx patricklx changed the title Add modifiers add modifiers to render tree Feb 6, 2024
@patricklx patricklx marked this pull request as ready for review February 6, 2024 14:13
@patricklx patricklx force-pushed the add-modifiers branch 13 times, most recently from 7c5e545 to 7a5e83e Compare February 7, 2024 12:51
@@ -5,6 +5,7 @@
<title>EmberInspector Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="../" />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then i can build --watch and also just open dist/testing/tests/index.html

@patricklx
Copy link
Collaborator Author

patricklx commented Feb 7, 2024

this is ready. I tried to support all versions we currently check and also make it robust in case some things are not available.
also, this is very close to the PR i have to glimmer-vm

RobbieTheWagner
RobbieTheWagner previously approved these changes Feb 8, 2024
Copy link
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@RobbieTheWagner RobbieTheWagner dismissed their stale review February 8, 2024 16:39

Screenshot looks weird

@RobbieTheWagner
Copy link
Member

@patricklx the code and tests look great here, thank you for taking this on! I was looking at the screenshot though, and shouldn't the modifier be inside the element? They seem to be outside of the closing >.

@patricklx
Copy link
Collaborator Author

pushed the changes

@patricklx
Copy link
Collaborator Author

@RobbieTheWagner what about this?

@patricklx patricklx marked this pull request as draft February 27, 2024 11:27
@patricklx
Copy link
Collaborator Author

I found that this might need more work. The modifiers need to be removed from debug render tree when they get destroyed

@patricklx patricklx marked this pull request as ready for review February 27, 2024 13:56
@patricklx patricklx force-pushed the add-modifiers branch 9 times, most recently from 2d1f748 to 6177e06 Compare February 27, 2024 16:02
@patricklx
Copy link
Collaborator Author

@RobbieTheWagner ready

@RobbieTheWagner
Copy link
Member

@patricklx looks like there are some conflicts. Would you mind resolving those please?

@patricklx
Copy link
Collaborator Author

@RobbieTheWagner rebased

@RobbieTheWagner RobbieTheWagner merged commit cfff718 into emberjs:main Mar 18, 2024
15 checks passed
@github-actions github-actions bot mentioned this pull request Apr 9, 2024
@patricklx patricklx deleted the add-modifiers branch April 29, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants